﻿<%@ Page Language="C#" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>车位维护</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link rel="stylesheet" type="text/css" href="../../../../WebPlugin/jquery-easyui/themes/default/easyui.css"/>
    <link rel="stylesheet" type="text/css" href="../../../../WebPlugin/jquery-easyui/themes/icon.css"/>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/jquery-1.7.1.min.js"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/locale/easyui-lang-zh_CN.js"></script>
    <script type="text/javascript" src="../../../../WebPlugin/jquery-easyui/JQueryCommon.js"></script>
    <script src="../../PageJS/BaseInfo/CarportManager.js" type="text/javascript"></script>
</head>
<body class="easyui-layout">
    <div region="west" split="true" title="车位区域" style="width:280px;padding:1px;overflow:hidden;" >
        <div id="tool">
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="javascript:$('#carAreaGird').datagrid('reload');">刷新</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="toolbar_carArea_add();">添加</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-edit" onclick="toolbar_carArea_alter();">修改</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="toolbar_carArea_del();">删除</a>
	    </div>
        <table id="carAreaGird" class="easyui-datagrid" toolbar="#tool" fit="true" border="false" iconCls="icon-edit" singleSelect="true">
		   <thead>
			<tr>
				<th field="Code" width="80">代码</th>
				<th field="AreaName" width="200" >区域名称</th>
			</tr>
		</thead>
	    </table>
	</div>
	<div region="center" title="车位" style="overflow:hidden;">
	    <div id="tool2">
	    <a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="batch_carport_add();">批量添加</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-reload" onclick="grid_carport_load();">全部显示</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-add" onclick="toolbar_carport_add();">添加</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-edit" onclick="toolbar_carport_alter();">修改</a>
		<a href="#" class="easyui-linkbutton" plain="true" iconCls="icon-cancel" onclick="toolbar_carport_del();">删除</a>
	    </div>
        <table id="carportGird" class="easyui-datagrid" toolbar="#tool2" fit="true" border="false" iconCls="icon-edit" singleSelect="true">
		   <thead>
			<tr>
				<th field="Code" width="80">代码</th>
				<th field="CarAreaCode" width="80">区域代码</th>
				<th field="Area" width="200" >面积</th>
				<%--<th field="OwnerName" width="200">使用人</th>--%>
				<th field="Place" width="100" >位置</th>
			</tr>
		</thead>
	    </table>
	</div>
</body>

<%--弹出窗口--%>
<%--车位区域--%>
<div id="dlg-cararea" class="easyui-dialog" title="添加车位区域" style="width:400px;height:200px;padding:5px"
 buttons="#dlg-buttons" resizable="true" modal="true">
    <form id="formcararea" method="post">
		<table>
           <tr>
                <td><label>代码:</label></td>
                <td><input id="formcarareacode" class="easyui-validatebox" style="width:200px" type="text" name="Code" required="true"></input></td>
           </tr>
           <tr>
                <td><label>区域名称:</label></td>
                <td><input class="easyui-validatebox" style="width:200px" type="text" name="AreaName" required="true"></input></td>
           </tr>         
       </table>
       <input id="formcarareatype" type="hidden" name="type" />
      </form>
	</div>
	<div id="dlg-buttons">
		<a href="#" class="easyui-linkbutton" onclick="dlg_cararea_confirm()">确定</a>
		<a href="#" class="easyui-linkbutton" onclick="dlg_cararea_close();">取消</a>
	</div>
<%--车位--%>
<div id="dlg-carport" class="easyui-dialog" title="添加服务项目" style="width:400px;height:250px;padding:5px"
 buttons="#dlg-buttons2" resizable="true" modal="true">
    <form id="formcarport" method="post">
		<table>
           <tr>
                <td><label>代码:</label></td>
                <td><input class="easyui-validatebox" style="width:200px" type="text" name="Code" required="true"></input></td>
           </tr>
           <tr>
                <td><label>区域代码:</label></td>
                <td><input id="carareacode" class="easyui-combobox" style="width:205px" type="text" name="CarAreaCode" valueField="Code" textField="AreaName" required="true" panelHeight="auto" url="Controller.aspx?controller=CarportController&method=GetCarAreaList"></input></td>
           </tr>  
           <tr>
                <td><label>面积:</label></td>
                <td><input class="easyui-numberbox" precision=2 style="width:200px" type="text" name="Area" required="true"></input></td>
           </tr>  
            <tr>
                <td><label>位置:</label></td>
                <td><input class="easyui-validatebox" style="width:200px" type="text" name="Place"></input></td>
           </tr>           
       </table>
       <input name="CarPortId" type="hidden" name="type" />
      </form>
	</div>
	<div id="dlg-buttons2">
		<a href="#" class="easyui-linkbutton" onclick="dlg_carport_confirm();">确定</a>
		<a href="#" class="easyui-linkbutton" onclick="dlg_carport_close();">取消</a>
	</div>


<div id="dlg-batchaddcarport" class="easyui-dialog" title="添加服务项目" style="width:400px;height:250px;padding:5px"
 buttons="#dlg-buttons3" resizable="true" modal="true">
		<table>
           <tr>
                <td><label>代码:</label></td>
                <td><input id="carportcode_begin" class="easyui-validatebox" style="width:100px" type="text" required="true"></input><input id="carportcode_end" class="easyui-validatebox" style="width:100px" type="text" required="true"></input></td>
           </tr>
           <tr>
                <td><label>区域代码:</label></td>
                <td><input id="carportareacode" class="easyui-combobox" style="width:200px" type="text" valueField="Code" textField="AreaName" required="true" panelHeight="auto" url="Controller.aspx?controller=CarportController&method=GetCarAreaList"></input></td>
           </tr>  
           <tr>
                <td><label>面积:</label></td>
                <td><input id="carportarea" precision=2 class="easyui-numberbox" style="width:200px" type="text" required="true"></input></td>
           </tr>  
            <tr>
                <td><label>位置:</label></td>
                <td><input id="carportplace" class="easyui-validatebox" style="width:200px" type="text"></input></td>
           </tr>           
       </table>
	</div>
	<div id="dlg-buttons3">
		<a href="#" class="easyui-linkbutton" onclick="dlg_batchcarport_confirm();">确定</a>
		<a href="#" class="easyui-linkbutton" onclick="$('#dlg-batchaddcarport').dialog('close');">取消</a>
	</div>
</html>
